Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2.0.3, fix LoggerManagement currency problem #193

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

HzjNeverStop
Copy link
Contributor

Motivation:

Explain the context, and why you're making that change.
To make others understand what is the problem you're trying to solve.

Modification:

Describe the idea and modifications you've done.

Result:

Fixes #.

If there is no issue then describe the changes introduced by this PR.

@sofastack-cla sofastack-cla bot added bug Something isn't working cla:yes size/M labels Nov 7, 2023
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (e0ff800) 34.69% compared to head (fb84e5a) 35.15%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #193      +/-   ##
============================================
+ Coverage     34.69%   35.15%   +0.46%     
- Complexity      672      692      +20     
============================================
  Files            74       75       +1     
  Lines          5693     5746      +53     
  Branches       1094     1097       +3     
============================================
+ Hits           1975     2020      +45     
- Misses         3466     3470       +4     
- Partials        252      256       +4     
Files Coverage Δ
...ay/sofa/common/log/MultiAppLoggerSpaceManager.java 49.05% <100.00%> (+1.43%) ⬆️
...pay/sofa/common/thread/SofaThreadPoolExecutor.java 98.92% <100.00%> (+0.06%) ⬆️
...ofa/common/thread/SofaThreadPoolTaskScheduler.java 77.27% <100.00%> (+1.66%) ⬆️
...common/thread/SofaScheduledThreadPoolExecutor.java 97.97% <94.73%> (-0.82%) ⬇️
...sofa/common/thread/SofaThreadPoolTaskExecutor.java 79.62% <75.00%> (-0.38%) ⬇️
...y/sofa/common/thread/SofaTracerCommandFactory.java 62.50% <62.50%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HzjNeverStop HzjNeverStop changed the title Fix init loggerSpace in concurrency Update 2.0.3, fix LoggerManagement currency problem Nov 7, 2023
Copy link

@crazysaltfish crazysaltfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HzjNeverStop HzjNeverStop merged commit cbbb90e into sofastack:master Nov 7, 2023
3 checks passed
@OrezzerO
Copy link
Contributor

Can codes simplify to

        if (!isSpaceILoggerFactoryExisted(spaceId)) {
            synchronized (space) {
                if (!isSpaceILoggerFactoryExisted(spaceId)) {
                    factory = createILoggerFactory(spaceId, space, spaceClassloader);
                    space.setAbstractLoggerSpaceFactory(factory);
                } 
            }
        }
       factory = LOG_FACTORY_MAP.get(spaceId).getAbstractLoggerSpaceFactory();
        

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla:yes size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants